﻿#include "GameButton.h"
#include"Game.h"
GameButton::GameButton(const QString& name, QWidget* parent)
	:Button(Game::res().getPixmaps(name),parent)
{
	
	setStyleSheet("QPushButton{border:none;background:transparent;}");
	setFixedSize(Game::res().getPixmap(name).size());
	setFont(QFont("微软雅黑", 25));
}

void GameButton::paintEvent(QPaintEvent* event)
{
	Button::paintEvent(event);
    QPushButton::paintEvent(event);
}
